﻿using RpcCacheClient;
using RpcCacheClient.Cache;
using RpcCacheClient.Interface;
using RpcCacheClient.Local;
using RpcCacheClient.Memcached;
using RpcCacheClient.Redis;
using RpcClient.Interface;

namespace RpcCacheModular
{
    public class CacheModular : IRpcModular
    {

        public void Init(IUnityCollect unity)
        {
            unity.RegisterInstance<IMemcachedCache>(new MemcachedService());
            unity.RegisterInstance<IRedisCache>(new RedisCacheController());
            unity.RegisterInstance<ILocalCacheController>(new LocalCacheService());
            unity.RegisterInstance<ICacheController>(new CacheController());
        }

   
    }
}